package com.example.userservice.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "logging-service")
public interface LoggingService {

    /**
     * 记录操作日志
     */
    @PostMapping("/log")
    String logOperation(@RequestParam("operationType") String operationType,
            @RequestParam("userId") Long userId,
            @RequestParam("description") String description);
}